# Show that llvm-readobj can handle no program headers when --program-headers
# is requested, both for LLVM and GNU output.

# RUN: yaml2obj %s -o %t
# RUN: llvm-readobj %t --program-headers | FileCheck %s --check-prefix=LLVM
# RUN: llvm-readelf %t --program-headers | FileCheck %s --check-prefix=GNU

# LLVM:      ProgramHeaders [
# LLVM-NEXT: ]

# GNU: There are no program headers in this file.
# GNU-EMPTY:
# GNU-NEXT:  Section to Segment mapping:
# GNU-NEXT:    Segment Sections...
# GNU-NEXT:     None   .strtab .shstrtab

--- !ELF
FileHeader:
  Class: ELFCLASS64
  Data:  ELFDATA2LSB
  Type:  ET_REL
